package org.otarriinae.security.base.service;


import org.otarriinae.security.base.model.TokenUserDetails;

/**
 * @author xj
 * @since 1.0
 */
public interface TokenManager {
    /**
     *  获取token
     * @param tokenUserDetails 用户信息
     * @return token
     */
    String createToken(TokenUserDetails tokenUserDetails);


    /**
     * 清除token
     * @param token
     */
    void removeToken(String token);
}
